/**
 * Created by Administrator on 14-11-12.
 * @author 郑钟良<zzl@ourstu.com>
 */

$(function(){
    $('.share_link').click(function(){
        var id=$(this).attr('question-id');
        $.post(U('question/index/share'),{id:id},function(){},'json');
        $('.share_box_'+id).hide();
    });
    $('.question_share_btn').click(function(){
        var id=$(this).attr('question-id');
        if($('.share_box_'+id).is(':visible')){
            $('.share_box_'+id).hide();
        }else{
            $('.share_box_'+id).show();
        }
    });
});

